﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    //编号（Id）、姓名（Name）,性别 （Sex）、身份证号（Cardid）、联系方式（Tel）
    class Person
    {
        private int id;
        private string name;
        private char sex;
        private long cardid;
        private long tel;

        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public char Sex
        {
            get { return this.sex; }
            set { this.sex = value; }
        }
        public long Cardid
        {
            get { return this.cardid; }
            set { this.cardid = value; }
        }
        public long Tel
        {
            get { return this.tel; }
            set { this.tel = value; }
        }
        public Person() { }
        public Person(int id,string name,char sex,long cardid,long tel) 
        {
            this.id = id;
            this.name = name;
            this.sex = sex;
            this.cardid = cardid;
            this.tel = tel;
        }
        public void Hello() 
        {
            Console.Write("编号：{0},姓名：{1},性别：{2},身份证号：{3},电话号：{4}，",this.id,this.name,this.sex,this.cardid,this.tel);
        }

    }
}
